package com.mzpai.product.service.impl;
import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.mzpai.product.mapper.UserBindStoreMapper;
import com.mzpai.product.model.UserBindStore;
import com.mzpai.product.service.UserBindStoreService;
import com.mzpai.product.vo.UserBindStoreVo;
import com.mzpai.service.impl.BaseServiceImpl;
import com.mzpai.util.PageUtil;

@Service
public class UserBindStoreServiceImpl extends BaseServiceImpl<UserBindStore> implements UserBindStoreService {

	Logger logger = LoggerFactory.getLogger(UserBindStoreServiceImpl.class);

	@Autowired 
	private UserBindStoreMapper userBindStoreMapper;

	@Override
	public PageInfo<UserBindStoreVo> getUserBindStoreListByPage(Map<String, Object> map, Integer pageNum,Integer pageSize) {
		PageHelper.startPage(pageNum, pageSize);
		List<UserBindStoreVo> listStoreProductSku=userBindStoreMapper.getUserBindStoreListByPage(map);
		return PageUtil.toPageInfo(listStoreProductSku);
	}


	
}